package com.jl.jlapp.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jl.jlapp.R;
import com.jl.jlapp.eneity.EvaluationDetailByUserIdAndIdModel;

import java.util.List;

public class EvaluationPicAdapter
  extends BaseQuickAdapter<EvaluationDetailByUserIdAndIdModel.ResultDataBean.EvaluationPicsBean, BaseViewHolder>
{
  public EvaluationPicAdapter(@LayoutRes int paramInt, @Nullable List<EvaluationDetailByUserIdAndIdModel.ResultDataBean.EvaluationPicsBean> paramList)
  {
    super(paramInt, paramList);
  }
  
  protected void convert(BaseViewHolder paramBaseViewHolder, EvaluationDetailByUserIdAndIdModel.ResultDataBean.EvaluationPicsBean paramEvaluationPicsBean)
  {
    String picUrl = paramEvaluationPicsBean.getPicUrl();
    ImageView localImageView = (ImageView)paramBaseViewHolder.getView(R.id.img);
    if (TextUtils.isEmpty(picUrl)) {
      Glide.with(paramBaseViewHolder.itemView.getContext()).asBitmap().apply(new RequestOptions().placeholder(R.drawable.img_noimg_xs).error(R.drawable.img_noimg_xs)).load(R.drawable.img_noimg_xs).into(localImageView);
    }else
    {
      paramBaseViewHolder.addOnClickListener(R.id.img);
      Glide.with(paramBaseViewHolder.itemView.getContext()).asBitmap().apply(new RequestOptions().placeholder(R.drawable.img_lose_xss).error(R.drawable.img_lose_xss)).load("http://117.158.178.202:8001/JLMIS/" + picUrl).into(localImageView);
    }
  }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/adapter/EvaluationPicAdapter.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */